<div class="toodeinfo">
	<div class="toodeimg">
		<a href="<?php echo $links[$product['id']] ?>">
                  <img src="<?php echo @myPicture::getInstance(isset($product['ProductPictures'][0]) ? $product['ProductPictures'][0]['file'] : 'blabla')->thumbnail(121,100)->url() ?>" width="121" height="100" alt=""/>
                </a>
	</div>
	<div class="toodeinf">
		<div class="toodeinftop">
			<h1><a href="<?php echo $links[$product['id']] ?>"><?php echo $product['name'] ?></a></h1>
			<?php 
				if( (strlen( $product['description']) )> 200 )
				{
					$out = substr($product['description'], 0, 200);
					$out  = $out ."...";
					?>
					<a href="<?php echo $links[$product['id']] ?>"><?php echo $out ?></a>
				<?php
				}else
				{
				?>
					<a href="<?php echo $links[$product['id']] ?>"><?php echo $product['description'] ?></a>			
				<?php
				}
			?>
		</div>
		<div class="toodeinfbottom">
                        <div>
                          <?php include_partial('categoryPage/productBoxPrices', array('product' => $product)) ?>
                        </div>
			<div class="clear"></div>
                        <div class="hinneright">
                          <?php for($i = 1; $i <= ceil($product['rating_sum'] / $product['rating_votes']); ++$i): ?>
                          <img src="/enermaatik/img/star.png" alt="" width="14" height="14">
                          <?php endfor; ?>
                           <div class="likebutton" style="margin-left: 10px;">
                            <?php include_partial('categoryPage/like', array('link' => $sf_request->getUriPrefix().$links[$product['id']])) ?>
                          </div>
			<div class="ostubutton">
				<div class="addbutton">
					<div class="addbuttonleft"><img src="/enermaatik/img/rbleft.png" width="8" height="26" alt=""/></div>
					<div class="addbuttoncenter">
						<div class="addbuttoncenterleft"><img src="/enermaatik/img/vbasket.png" width="17" height="13" alt=""/></div>
						<div class="addbuttoncenterright">
							<input type="hidden" name="qty" value="1" />
							<a class="addToBasket" href="<?php echo $helper->basketLink($product)  ?>"><?php echo __('lisa ostukorvi') ?></a>
						</div>
						<div class="clear"></div>
					</div>

					<div class="addbuttonright"><img src="/enermaatik/img/rbr.png" width="8" height="26" alt=""/></div>
					<div class="clear"></div>
				</div>
				<div class="clear"></div>
                                
			</div>
                        </div>
                        <div class="clear"></div>
		</div>
	</div>
	<div class="clear"></div>
</div>